<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core">

    <p:dialog header="Filtro Número" widgetVar="dialogNro" resizable="false" draggable="false"  
              width="480" showEffect="fade" hideEffect="explode" modal="true">  
        <h:form id="formFiltroNroOC">
            <h:panelGrid  columns="2" cellpadding="4">  
                <h:outputText value="Nro:" />  
                <h:inputText value="#{filtroNroOC.nro}"/>  
            </h:panelGrid>  
            <p:separator/>


            <h:panelGrid columns="2">
                <p:commandButton value="Aplica" action="#{ordenCompraBean.busca()}" oncomplete="dialogNro.hide();"
                                 update="@(.resultado)"/>
                <p:commandButton value="Cierra" oncomplete="dialogNro.hide();" immediate="true"/>
            </h:panelGrid>

        </h:form>
    </p:dialog>  

</ui:composition>
